package com.itheima.dao;

import com.itheima.pojo.ExceptionLog;
import com.itheima.pojo.TWebVisit;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@org.apache.ibatis.annotations.Mapper
public interface WebVisitMapper extends Mapper<TWebVisit> {
    @Select("select * from t_web_visit where create_time between #{time1} and #{time2}")
    @Results({
            @Result(column = "user_uid",property = "userUid"),
            @Result(column = "module_uid",property = "moduleUid"),
            @Result(column = "other_data",property = "otherData"),
            @Result(column = "create_time",property = "createTime"),
            @Result(column = "update_time",property = "updateTime"),
            @Result(column = "ip_source",property = "ipSource")
    })
    List<TWebVisit> selectTime(@Param("time1") String time1, @Param("time2") String time2);
}
